// theme.js

const colors = {
  primary: '#F96C0D', // 主色调：蓝色
  secondary: '#2ecc71', // 辅助色调：绿色
  accent: '#e74c3c', // 强调色：红色
  background: '#ecf0f1', // 背景色：浅灰
  textPrimary: '#2c3e50', // 主文本颜色：深灰
  textSecondary: '#7f8c8d', // 次文本颜色：中灰
  white: '#ffffff',
  black: '#000000',
  borderColor: '#bdc3c7', // 边框颜色：灰色
  warning: '#f39c12', // 警告色：橙色
  success: '#27ae60', // 成功色：绿色
  info: '#2980b9', // 信息色：蓝色
};

const fonts = {
  regular: 'Helvetica, Arial, sans-serif',
  bold: 'Helvetica-Bold, Arial-Bold, sans-serif',
  sizeSmall: 12,
  sizeBigSmall: 14,
  sizeMedium: 16,
  sizeLarge: 20,
};

// let appName = '测试app';
let appName = '江楠韵';
// let appName = '骏优诚';
// let appPlatform = 'ios';
let appPlatform = 'android';

const getAppKey = () => {
  if (appName === '骏优诚' && appPlatform === 'ios') {
    return '6TmDrj7JTkhZV9qb8mKRKdE4';
  } else if (appName === '骏优诚' && appPlatform === 'android') {
    return 'Mzir2F0mTQZNnpanPNg3cekL';
  } else if (appName === '江楠韵' && appPlatform === 'ios') {
    return 'iaffUP3utKfkxwF_v95WSG4B';
  } else if (appName === '江楠韵' && appPlatform === 'android') {
    return 'B7A5BAfyPmh4L1TEnGU1ETSt';
  } else if (appName === '测试app' && appPlatform === 'ios') {
    return '-lKUTRpbvGqsslR4YWrgafpF';
  } else if (appName === '测试app' && appPlatform === 'android') {
    return '';
  }
};

const app = {
  name: appName,
  version: '1.0.3',
  logo:
    appName === '骏优诚'
      ? require('../../res/image/logo_huang.png')
      : require('../../res/image/logo_zhang.png'),
  appKey: getAppKey(),
  unitPrice: 1198,
  productImg: require('../../res/image/goods.png'),
};

const sizes = {
  padding: 10,
  margin: 10,
  borderRadius: 5,
};

// 导出主题对象
export default {
  colors,
  fonts,
  app,
  sizes,
};
